import * as types from './mutation-types'

const mutations = {
  [types.SET_PAGE] (state, page) {
    state.page.pageIndex = page.pageIndex
    state.page.pageSize = page.pageSize
  },
  [types.SET_LOADING] (state, loading) {
    state.loading = loading
  },
  [types.SET_PARAMS] (state, params) {
    state.params = params
  }
}

export default mutations
